<?
/*include 'common/autoload.php';
include 'common/header.html';
include 'common/left.html';*/
?>

<?php
include("common/header.html");
include("../_made/le.cfg.php");
include("common/left.html");
include("common/uproute.php");


?>
<script> document.title="游记管理 - <?=$GLOBALS['web_title']?>";</script>
	<link rel="stylesheet" type="text/css" href="css/my_color.css"/>
    <link rel="stylesheet" href="css/aliceui.min.css">
    <link rel="stylesheet" type="text/css" href="css/resetui.css"/>
    <link rel="stylesheet" type="text/css" href="css/noticet.css"/>
    <link rel="stylesheet" type="text/css" href="css/jPages.css" />
    <form action="travelManage.php" method="post">
<div class="r_content">
    <h3 class="mc_title">
        <span class="mctit_1"><span class="mctit_2">路线管理</span></span>
    </h3>
    <div class="notiul">
	<ul id="tagsa">
        <?//if($_SESSION['dtype']==7){?>
    	    <a href="uproute.html" class="addnot">发布路线</a>
            <li class="<?=!isset($_GET['inbox'])?'selectTaga':'';?>"><a href="?outbox" class="notta">路线推荐</a></li>
            
        <?//} else {echo '你不是集团管理员,不能操作此项';}?>
    </ul>
</div>
    <input value="<?=$did?>" type="hidden" name="did"/>
    <div class="clay">
    <!--<?if(!isset($sflag)){?>
	<ul class="clayul">
        <li class="<?=$_GET['state']==3 ||!isset($_GET['state'])?'currentli':''?>" ><a href="?state=3" class="clayula">所有游记</a></li>
        <li class="<?=$_GET['state']==0 && is_numeric($_GET['state'])?'currentli':''?>" ><a href="?state=0" class="clayula">未读游记</a></li>
        <li class="<?=$_GET['state']==1?'currentli':''?>" ><a href="?state=1" class="clayula">已读游记</a></li>
    </ul>
    <?}?>-->
    <ul class="box" id="itemContainer">
        <?if(count($lists)) {foreach($lists as $list){?>
            <li id="li_<?=$list['id']?>">
            	<span class="date"><?=$list['edit_date']?></span>
                <span><input type="checkbox" class="chkbox" name="id[]" value="<?=$list['id']?>"/></span>
             
                <?if(isset($_GET['inbox']) || $_SESSION['dtype']>0){?>
                    <span class="from"><?=$list['topic']?></span>
                <?}?>
                <?if($list['sms_notify']){?>
                    <img src="images/icons/icon_mobile.png" title="有新游记" alt="短信"/>
                <?}?>
                <span class="title">
                <?if(isset($_GET['outbox'])){?>
                    <a title="<?=$list['topic']?>--点击查看详细" href="routeDetail.html?outbox&id=<?=$list['id']?>" target="_blank"><?=mbsubstr($list['content'],60,"...")?></a>
                <?}else{?>
                    <a title="<?=$list['topic']?>--点击查看详细" href="routeDetail.html?id=<?=$list['id']?>" target="_blank"><?=mbsubstr($list['content'],60,"...")?></a>
                <?}?>
                </span>
            </li>
        <?}} else {?>
            <p>您目前没有未读的路线</p>
        <?}?>
    </ul>
    <div class="btn_gray">
        <input type="submit" name="data-state" value="标记为已发布" />
        <input type="submit" name="data-state" value="删除" />
        <span id="holder" class="holder"></span>
    </div>
</div>
</div>
</form>
    <script src="js/jPages.min.js" type="text/javascript"></script>
    <script type="text/javascript" src="js/notice.js"></script>
    <script type="text/javascript">
        $(function(){
            $("span#holder").jPages({ containerID : 'itemContainer',previous : "←",next : "→",perPage : 15,delay : 1});
        });
    </script>
<?include("common/footer.html")?>